var StartBackgroundLayer = cc.LayerColor.extend({
    ctor:function () {
        this._super();
        this.loadBg();
        this.loadStyle();
        this.loadLine();
//        this.loadLogo();
        this.loadLogo1();
        return true;
    },
    loadBg : function() {
		this.bg1 = new cc.Sprite("#bg1.jpg")
		this.bg1.setPosition(cc.p(gg.c_width,gg.c_height));
		this.addChild(this.bg1,1);
		this.bg2 = new cc.Sprite("#bg2.jpg")
		this.bg2.setPosition(cc.p(this.bg2.width*0.5,this.bg2.height*0.5));
		this.addChild(this.bg2,2);
		this.bg3 = new cc.Sprite("#bg3.png")
		this.bg3.setPosition(cc.p(this.bg2.width+43+this.bg3.width*0.5,this.bg3.height*0.5));
		this.addChild(this.bg3,3);
	},
	//左下右下两个图案
	loadStyle:function(){
		this.style1 = new cc.Sprite("#style_left.png")
		this.style1.setPosition(cc.p(this.bg2.width+this.style1.width*0.5+40,this.style1.height*0.5+40));
		this.addChild(this.style1,1);
		this.style2 = new cc.Sprite("#style_right.png")
		this.style2.setPosition(cc.p(gg.width-this.style2.width*0.5-40,this.style2.height*0.5+40));
		this.addChild(this.style2,2);
	},
	loadLine:function(){
		var line = new cc.LayerColor(cc.color(201,146,147),830,0.5);
		this.addChild(line,2);
		line.setPosition(cc.p(this.bg2.width+102,gg.height-126));
	},
    //学校logo
    loadLogo:function(){
    	var logo = new cc.Sprite(res_start.logo);
    	logo.setAnchorPoint(0, 1);
    	logo.setPosition(gg.width-40-logo.width*0.5, gg.height - 40-logo.height*0.5);
    	this.addChild(logo, 10);
    },
    //沃赛logo
    loadLogo1:function(){
    	var logo1 = new cc.Sprite(res_start.logo1);
    	logo1.setAnchorPoint(1, 1);
    	logo1.setPosition(gg.width-10, gg.height - 10);
    	this.addChild(logo1, 10);
    }
});